#ifndef __KEYBOARD_H
#define __KEYBOARD_H

#include "gpio.h"
#include "stdint.h"
#include "main.h"

/** 
 * @brief 按键结构体
 */
typedef struct
{
	GPIO_TypeDef *PinPort;   /*! pin端口   */
	uint16_t Pinnum;   /*! pin号码   */
} KEY_PIN_t;

int keyboardscan(void); 

uint8_t GetKeyVal(uint8_t keynum); 

#endif